package com.jimmy.medical.repository;

import com.jimmy.medical.entity.Measures;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MeasuresRepository extends JpaSpecificationExecutor<Measures>, PagingAndSortingRepository<Measures, Long> {

    List<Measures> findByFirstLetterLike(String firstLetter);

    List<Measures> findByStatus(String status);

    List<Measures> findBySortsIsNotNull();


}
